﻿using Microsoft.EntityFrameworkCore;
using Mojito.Data.Entities;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Mojito.Services
{
    public class EnviromentService : AppServiceBase
    {
        public async Task<IList<RequestEnviroment>> Get(string workspaceId)
        {
            return await Context.RequestEnviroment
                .Where(d => d.WorkspaceId == workspaceId)
                .ToListAsync();
        }
    }
}
